import {request} from"."
import type { RESPONSE } from "../types/base"
import type {Type} from "../types/type"


export const reqDelFile =(filename:string)=>request.delete<null,RESPONSE>("/api/upload/",{
    data:{
        naem:filename
    }
})
export const reqGetAllTypes =()=>
    request.get<null,RESPONSE<Type[]>>('/api/type/all')





